<?php

	//初始化织梦的链接
	$DBDE = new db_driver();
	$DBDE->obj['sql_database']     = 'test';
	$DBDE->obj['sql_user']         = 'root';
	$DBDE->obj['sql_pass']         = 'dengbo';
	$DBDE->obj['sql_host']         = '127.0.0.1';
	$DBDE->obj['sql_tbl_prefix']	 = 'dede_';
	$DBDE->connect();
	//设置连接字符集
	$DBDE->cur_query = "
	SET CHARACTER_SET_CLIENT = utf8,
		CHARACTER_SET_CONNECTION = utf8,
		CHARACTER_SET_DATABASE = utf8,
		CHARACTER_SET_RESULTS = utf8,
		CHARACTER_SET_SERVER = utf8,
		COLLATION_CONNECTION = utf8_general_ci,
		COLLATION_DATABASE = utf8_general_ci,
		COLLATION_SERVER = utf8_general_ci,
		AUTOCOMMIT=1";
	$DBDE->exec_query();

?>